<template>
    <div class="box">
        <header class="header">我的头部</header>
        <div class="content">{{ username }}</div>
        <div>{{ $store.state.username }}</div>
    </div>
</template>

<script>
export default {
    data() {
        return {
            username: localStorage.getItem('username')
        }
    }
}
</script>
